PATH
Mac OS 8 and 9 Developer Documentation
>
Human Interface Toolbox
>
Icon Services and Utilities
>
Obtaining and Using Icons With Icon Services
Overriding and Restoring Icon Data
You may wish to redraw icons on a temporary basis without going to the trouble of obtaining a new
IconRef
. One example of this is when a user has started to download a file and you want to use partial file icons to represent the various stages of the download process. Icon Services provides two functions to temporarily override the data in an
IconRef
; the one you choose depends on the source of the data you will use for the override. If you obtain the source data from another
IconRef
, use the function
OverrideIconRef
. If the source data is contained in a resource, use the function
OverrideIconRefFromResource
. You can restore the original
icon data by using the function
RemoveIconOverride
.
© 1999 Apple Computer, Inc. – (Last Updated 03 Dec 99)